#pragma once

#include <QOpenGLWidget>
#include <QWidget>
#include <QLabel>
#include <QPainter>
#include <QPixmap>
#include <QFont>
#include <vector>
#include <QMouseEvent>
#include <QDesktopServices>

class ShowQLabel : public QOpenGLWidget
{
    Q_OBJECT

public:
    QString m_string_show;
    QImage m_image_show;
    QColor m_color;
    ShowQLabel(QWidget *parent);

    void loadtextimage(QImage image,QString string_show,QColor color);

    //重写paintEvent方法
    void paintEvent(QPaintEvent *e);

//    void mouseDoubleClickEvent(QMouseEvent *event) override {

//        m_image_show
//        QDesktopServices::openUrl(QUrl(m_settings_para->value("para/m_save_image_dir", "").toString(), QUrl::TolerantMode));

//            // 在此处添加按下鼠标时的处理代码
//        }

};
